package cn.fanyamin.business;

import java.util.List;

import cn.fanyamin.domain.Account;
import cn.fanyamin.domain.Article;
import cn.fanyamin.domain.Friend;
import cn.fanyamin.domain.Issue;
import cn.fanyamin.domain.Site;



public interface ToolService {

    //------------- Account ---------------
    public  int createAccount(Account account);
    public  Account retrieveAccount(int id);
    public  int updateAccount(Account t);
    public int deleteAccount(int id);
    public List<Account> listAccount(int userID);

    //------------- Article ---------------
    public  int createArticle(Article article);
    public  Article retrieveArticle(int id);
    public  int updateArticle(Article t);
    public int deleteArticle(int id);
    public List<Article> listArticle(int userID);
    public List<Article> findArticle(Article article);
   
    //------------- Issue ---------------
    public  int createIssue(Issue issue);
    public  Issue retrieveIssue(int id);
    public  int updateIssue(Issue t);
    public int deleteIssue(int id);
    public List<Issue> listIssue(int userID);

    //------------- Site ---------------
    public  int createSite(Site site);
    public  Site retrieveSite(int id);
    public  int updateSite(Site t);
    public int deleteSite(int id);
    public List<Site> listSite(int userID);

    //------------- Friend ---------------
    public  int createFriend(Friend friend);
    public  Friend retrieveFriend(int id);
    public  int updateFriend(Friend t);
    public int deleteFriend(int id);
    public List<Friend> listFriend(int userID);

}
